package com.service.impl;

import com.mapper.BranchMapper;
import com.pojo.Branch;
import com.service.BranchService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("branchService")
public class BranchServiceImpl implements BranchService {
    @Resource
    private BranchMapper branchMapper;
    @Override
    public List<Branch> list() {
        return branchMapper.list();
    }

    @Override
    public Branch searchByBranch(String id) {
        return branchMapper.get(id);
    }
}
